package com.atguli.gulimall.product.service;

import com.atguli.common.entity.QueryWrapperVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguli.common.utils.PageUtils;
import com.atguli.gulimall.product.entity.CategoryBrandRelationEntity;

/**
 * 品牌分类关联
 *
 * @author kotori
 * @email 1012403910@qq.com
 * @date 2021-01-18 21:00:53
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(QueryWrapperVO params);

    /**
     * 保存所有字段
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 更新关联表——品牌
     * @param brandId
     * @param name
     */
    void updateBrand(Long brandId, String name);

    /**
     * 更新关联表——分类
     * @param catId
     * @param name
     */
    void updateCategory(Long catId, String name);
}

